const index = {
    namespaced: true,
    state: {
		user_name: '',
        start_time: '',
		end_time: ''
    },
    getters: {
		getStartTime(state) {
		    return state.start_time
		},
        getEndTime(state) {
            return state.end_time
        },
		getUserName(state) {
		    return state.user_name
		},
		getParams(state) {
			return state
		}
    },
    mutations: {
		setUserName(state, params) {
		    state.user_name = params;
		},
        setStartTime(state, params) {
            state.start_time = params;
        },
		setEndTime(state, params) {
		    state.end_time = params;
		},
		setParams(state, params) {
		    state.user_name =params.user_name;
		    state.start_time =params.start_time;
		    state.end_time =params.end_time;
		},
    },
    actions: {
		setUserName({ commit }, params) {
		    commit("setUserName", params);
		},
        setStartTime({ commit }, params) {
            commit("setStartTime", params);
        },
		setEndTime({ commit }, params) {
		    commit("setEndTime", params);
		},
		setParams({ commit }, params) {
			commit("setParams", params);
		}
    }
};

export default index;
